home *** CD-ROM | disk | FTP | other *** search
/ GFX Sensations 1 / Graphic Sensations - Volume 1.iso / tools / amiga / 3d_tools / irit40s.lha / Irit / prsr_lib / ip_procs.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-12-30  |  950 b   |  31 lines

  1. /*****************************************************************************
  2. * Generic freeform curves and surface processing function for irit parser.   *
  3. *                                         *
  4. * Written by:  Gershon Elber                Ver 0.2, April 1993  *
  5. *****************************************************************************/
  6.  
  7. #include <stdio.h>
  8. #include "irit_sm.h"
  9. #include "attribut.h"
  10. #include "iritprsr.h"
  11.  
  12. /*****************************************************************************
  13. * Routine to process read surfaces/curves.                     *
  14. *****************************************************************************/
  15. IPObjectStruct *IritPrsrProcessFreeForm(IPObjectStruct *CrvObjs,
  16.                     IPObjectStruct *SrfObjs)
  17. {
  18.     IPObjectStruct *PObj;
  19.  
  20.     if (SrfObjs == NULL)
  21.     return CrvObjs;
  22.     else if (CrvObjs == NULL)
  23.     return SrfObjs;
  24.     else {
  25.     for (PObj = SrfObjs; PObj -> Pnext != NULL; PObj = PObj -> Pnext);
  26.     PObj -> Pnext = CrvObjs;
  27.     return SrfObjs;
  28.     }
  29. }
  30.  
  31.